#include <iostream>
using namespace std;
int static_global_val = 5;
extern int global_val; //获取static_global_val.cxx中的变量static_global_val
int show_variable() {
  global_val += 1;
  cout << "全局变量当前地址:" << &global_val << "值：" << global_val;
  return global_val;
}
int main() {
  cout << "main 函数中地址" << &global_val << "真实值：" << global_val << endl;
  int num = show_variable();
  cout << "num 真实值：" << &num << " value:" << num << endl;
  return 0;
}
